package com.example.domain;

import java.util.Date;

/**
 * @program: sms
 * @description:
 * @author: zhanghz001
 * @create: 2020-11-08 20:07
 **/
public class Student {

    //    sid INT PRIMARY KEY AUTO_INCREMENT, -- 学生id
    private Integer sid;
    // NAME VARCHAR(20), -- 学生姓名
    private String name;
    // age INT, -- 学生年龄
    private int age;
    // birthday DATE -- 学生生日
    private Date birthday;

    public Student() {
    }

    public Student(Integer sid, String name, int age, Date birthday) {
        this.sid = sid;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Student{" +
                "sid=" + sid +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                '}';
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
